package com.iplatform.commons.constant;

/**
 * 常量类
 */
public class Constants {
	/**
	 * UTF-8 字符集
	 */
	public static final String UTF8 = "UTF-8";
	
	/**
	 * GBK 字符集
	 */
	public static final String GBK = "GBK";
	
	/**
	 * GB13800 字符集
	 */
	public static final String GB13800 = "GB13800";
	
	/**
	 * http请求
	 */
	public static final String HTTP = "http://";
	
	/**
	 * https请求
	 */
	public static final String HTTPS = "https://";
	
	/**
	 * 成功标记
	 */
	public static final Integer SUCCESS = 200;
	
	/**
	 * 失败标记
	 */
	public static final Integer FAIL = 500;
	
	/**
	 * 登录成功
	 */
	public static final String LOGIN_SUCCESS = "Success";
	
	
	public static class FilePostFix {
		public static final String ZIP_FILE = ".zip";
		
		public static final String[] IMAGES = {"jpg", "jpeg", "JPG", "JPEG", "gif", "GIF", "bmp", "BMP", "png"};
		public static final String[] ZIP = {"ZIP", "zip", "rar", "RAR"};
		public static final String[] VIDEO = {"mp4", "MP4", "mpg", "mpe", "mpa", "m15", "m1v", "mp2", "rmvb"};
		public static final String[] APK = {"apk", "exe"};
		public static final String[] OFFICE = {"xls", "xlsx", "docx", "doc", "ppt", "pptx"};
		public static final String STYLEFILE = ".sld";
		
	}
	
	public static class FileType {
		public static final String FILE_IMG = "image";
		public static final String FILE_ZIP = "zip";
		public static final String FILE_VEDIO = "video";
		public static final String FILE_APK = "apk";
		public static final String FILE_OFFICE = "office";
		public static final String FILE_OTHER = "other";
		public static final String FILE_IMG_DIR = "/img/";
		public static final String FILE_ZIP_DIR = "/zip/";
		public static final String FILE_VEDIO_DIR = "/video/";
		public static final String FILE_APK_DIR = "/apk/";
		public static final String FILE_OFFICE_DIR = "/office/";
		public static final String FILE_OTHER_DIR = "/other/";
	}
}
